<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
        //1.创建对象
        const request = new XMLHttpRequest();
        //2.open
        request.open("GET","http://www.biwuit.cn/spboot/userLoginGetRequest?username=admin&password=66666")
        //3.send
        request.send();
        //4.循环调用
        request.onreadystatechange = function(){
            if(request.readyState==4)
            {
                console.log(request.status)
                console.log(request.responseText)
            }
            // console.log(request.readyState)
            // console.log(request.status)
            // console.log(request.responseText)
        }
    </script>
</body>
</html>